package Demo8;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-12-19
 * Time: 23:00
 */
public class Main {
    public static void main(String[] args) {
        Customer c1 = new Customer();
        Customer c2 = new Customer();
        c1.setDate("四通", 1001, "北大街100号");
        c2.setDate("三菱", 1002, "南大街99号");
        c1.info();
        c2.info();
    }
}

class Customer {
    private String name;
    private int id;
    private String address;

    public void setDate(String name, int id, String address) {
        this.id = id;
        this.address = address;
        this.name = name;
    }
    void info(){
        System.out.println("客户编号:"+id+" 客户名:"+name+" 客户地址:"+address);
    }
}